package sample.jpa.health;

import org.springframework.boot.actuate.health.Health;
import org.springframework.boot.actuate.health.HealthIndicator;
import org.springframework.stereotype.Component;

/**
 * Discription:
 * User:chenl
 * Date:2017/3/9 0009
 */
@Component
public class MyHealth implements HealthIndicator {
    /**
     * Return an indication of health.
     *
     * @return the health for
     */
    @Override
    public Health health() {
        return Health.up().withDetail("hello", "chenli").build();
    }
}
